SET(TARGET_NAME iec101)

include_directories(${CMAKE_ROOT_DIR}/lib/iec101)
include_directories(${CMAKE_ROOT_DIR}/lib/reg)

add_library(${TARGET_NAME} SHARED
    iec101.cpp
    iec101device.cpp)

target_link_libraries(${TARGET_NAME} util_tools idevice json icom iiec101 ireg)

install(TARGETS ${TARGET_NAME}
        DESTINATION plugin)